#pragma once
#include "StdAfx.h"

/*
	GameResource is a pure virtual base class for any class that must load/save from/to hard drive.

	Written by Arseni Natapov on 1/5/2011;
*/
class GameResourceDesc
	:public BaseDesc
{
public:
	string FileName;
};
class GameResource :
	public Base
{
public:
	GameResource(GameResourceDesc &desc):Base(desc)
	{
		FileName=desc.FileName;
	};
	/*GameResource(string name, string file_name):Base(name)
	{
		Name=name;
		FileName=file_name;
	};*/
	virtual ~GameResource(){};
	string FileName;
	virtual void LoadFromFile()=0;
	virtual void SaveToFile()=0;
};

